package com.waimai.www.dao;

import com.waimai.www.po.Orders;

import com.waimai.www.po.OrdersExample;
import java.util.List;


import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

public interface OrdersMapper {
    long countByExample(OrdersExample example);
    int deleteByExample(OrdersExample example);
    int deleteByPrimaryKey(Integer orderid);
    int insert(Orders record);
    int insertSelective(Orders record);
    List<Orders> selectByExample(OrdersExample example);
    Orders selectByPrimaryKey(Integer orderid);
    int updateByExampleSelective(@Param("record") Orders record, @Param("example") OrdersExample example);
    int updateByExample(@Param("record") Orders record, @Param("example") OrdersExample example);
    int updateByPrimaryKeySelective(Orders record);
    int updateByPrimaryKey(Orders record);
	
	
	Orders findById(Integer orderid);
	List<Orders> getOrdersById(Integer ordersId);
	List<Orders> getAllOrdersByUsersId(Integer usersId);
	void saveOrdersAndOrders(Orders orders, List<Orders> orderList);
	
}